import request from '@/utils/request'

export function getArticles (params) {
  return request({
    url: '/h5/interview/query',
    params
  })
}

export function getDetail (id) {
  return request({
    url: '/h5/interview/show',
    params: {
      id
    }
  })
}

export function updateLikeOrCollect (data) {
  return request({
    url: '/h5/interview/opt',
    method: 'post',
    data
  })
}

export function getLikeOrCollect (params) {
  return request({
    url: '/h5/interview/opt/list',
    params
  })
}
